package com.permissions.dispatcher.processor.exception;

import com.permissions.dispatcher.processor.util.Extensions;

import javax.lang.model.element.ExecutableElement;

/**
 * 混合权限异常
 */
public class MixPermissionTypeException extends RuntimeException {
    /**
     * 混合权限异常
     */
    public MixPermissionTypeException(ExecutableElement ecutableElement, String permissionName) {
        super(
                "Method '"
                        + Extensions.simpleString(ecutableElement)
                        + "()' defines '$permissionName' with other permissions at the same time.");
    }
}
